home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-05-23 | 820 b | 36 lines | [TEXT/MCAD] |
- .MCD 30002 0
- .CMD PLOTFORMAT logs=0,0 subdivs=1,1 size=5,15 type=l
- .CMD FORMAT rd=d ct=10 im=i et=3 zt=15 pr=3 mass length time charge
- .CMD SET ORIGIN 0
- .CMD SET TOL 0.001000
- .CMD MARGIN 0
- .CMD LINELENGTH 68
- .CMD SET PRNCOLWIDTH 8
- .CMD SET PRNPRECISION 4
- .TXT 0 0 1 24
- a1,24,24,24
- ANHARMONIC OSCILLATIONS
- .TXT 0 35 1 32
- a1,32,32,37
- Over a mesh of N points from a to -a
- .EQN 1 -35 1 10
- N:100
- .EQN 0 14 1 12
- i:1;N
- .EQN 0 14 1 10
- a:3.1
- .EQN 1 4 3 23
- x[i:a*(2*i/(N+1)-1)
- .EQN 1 -32 2 9
- t[0:0
- .EQN 0 16 2 9
- x[0:a
- .TXT 3 -16 2 60
- a2,60,60,134
- We compute the times at which these points are reached by an
- oscillator having a cosine potential energy, and plot their trajectory.
- .EQN 3 0 5 34
- t[i:t[(i-1)+a/\|(cos(x[i)-cos(a))
- .EQN 0 36 8 30
- a&-a&x[i{1,1,6,25,d}@t[N&0&t[i
-